<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>csrf登录</title>
    <link rel="stylesheet" href="{% static 'css/index.css' %}">
    <style>
        table {
            margin: 100px auto;
        }
        .head{
            font:bold 25px '华文宋体';
        }
    </style>
</head>
<body>
<div class="main">
    <form action="" method="post">
{#        <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">#}
       {% csrf_token %}

        <table>
            <caption class="head">csrf登录</caption>
            <tbody>
            <tr>
                <td>邮箱</td>
                <td><input type="email" name="email"/></td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input type="password" name="password"/></td>
            </tr>
            <tr>
                <td></td>
                 <td><input type="submit" name="登录"/></td>
            </tr>
            </tbody>

        </table>
    </form>
</div>

</body>
</html>